package com.beaven.model.data.group;

import com.beaven.model.data.BaseDbRepository;
import com.beaven.model.data.DbDataSource;
import com.beaven.model.model.db.Group;
import com.raizlabs.android.dbflow.sql.language.SQLite;
import java.util.List;

/**
 * author: Beaven
 * time: 2017/6/2 10:11
 */

public class GroupRepository extends BaseDbRepository<Group> implements DbDataSource<Group> {

  @Override public void load(SuccessCallBack<List<Group>> callBack) {
    super.load(callBack);
    SQLite.select().from(Group.class).async().queryListResultCallback(this).execute();
  }
}
